import { request } from "./index";

// 收藏模块
const apiModule = 'goodsCollectApp/';

// 删除
export const deleteGoodsCollect = (data) => {
    data = Object.assign({}, data, data);
    return request(apiModule + 'delete', data);
}

// 查看详情
export const queryGoodsCollectDetail = (data) => {
    return request(apiModule + 'queryDetails', data);
}

// 列表查询
export const queryGoodsCollectList = (data) => {
    return request(apiModule + 'queryList', data);
}

// 新增/取消
export const updateGoodsCollect = (data) => {
    data = Object.assign({}, { showLoading: false }, data);
    return request(apiModule + 'save', data);
}
